package sctu.edu.java.year2016.team04.baiyunfei.day20160601.chapter9_1;

import java.util.Scanner;

/**
 * 创建一个类，并在类中创建一个成员内部类，通过成员内部类计算1到任意数的和的操作，并在外部类中进行测试
 * Created by DE on 2016/6/1.
 */
public class Client9_1 {
    public static void main(String[] args) {



        System.out.println("请输入一个数：");
        Scanner scan = new Scanner(System.in);

        int num = scan.nextInt();


            Chapter9_1 out1 = new Chapter9_1();
            Chapter9_1.InClass result = out1.new InClass();
            System.out.println("========================================================================================");
        result.SUM(num);
            out1.display();



    }

}
